package com.koo.modules.product.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.koo.common.base.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author charlin
 * @email 136137465@qq.com
 * @date 2022-12-21 10:13:24
 */
@Data
@ApiModel()
@TableName("product_image")
public class ProductImageEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;


    @ExcelIgnore
    @TableId
    private Long imageId;

    @ColumnWidth(11)
    @ExcelProperty("产品id")
    @ApiModelProperty(value = "产品id")
    private Long productId;

    @ColumnWidth(11)
    @ExcelProperty("图片名称")
    @ApiModelProperty(value = "图片名称")
    private String name;

    @ColumnWidth(11)
    @ExcelProperty("图片路径")
    @ApiModelProperty(value = "图片路径")
    private String url;

    @ColumnWidth(11)
    @ExcelProperty("图片uid")
    @ApiModelProperty(value = "图片uid")
    private String uid;

    @ColumnWidth(11)
    @ExcelProperty("图片扩展名")
    @ApiModelProperty(value = "图片扩展名")
    private String suffix;

    @ColumnWidth(11)
    @ExcelProperty("类型：1、普通图片，2、logo，3、视频")
    @ApiModelProperty(value = "类型：1、普通图片，2、logo，3、视频")
    private Integer type;

    @ColumnWidth(11)
    @ExcelProperty("图片大小")
    @ApiModelProperty(value = "图片大小")
    private String size;

    @ColumnWidth(11)
    @ExcelProperty("1: 是默认图片")
    @ApiModelProperty(value = "1: 是默认图片")
    private Integer isDefault;


}
